package com.wxq.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wxq.common.utils.PageUtils;
import com.wxq.product.entity.AttrGroupEntity;
import com.wxq.product.vo.AttrGroupRelationV0;
import com.wxq.product.vo.AttrGroupWithAttrsV0;
import com.wxq.product.vo.SpuAttrGroupVO;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author jim
 * @email 2982877319@qq.com
 * @date 2022-03-13 19:57:58
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params,Long catelogId);
    /**
     * 获取分类下所有分组及关联的所有属性
     * @param catelogId
     * @return
     */

    List<AttrGroupWithAttrsV0> getAttrGroupWhthAttrsByCatelogId(Long catelogId);

    /**
     * spu规格参数
     * @param catalogId
     * @param spuId
     * @return
     */
    List<SpuAttrGroupVO> getAttrGroupWithAttysBySpuId(Long catalogId, Long spuId);
}

